#include <iostream>
#include "../CallBacker/EncryptCallBacker.h"
#include "../CallBacker/AESEncryptCallBacker.h"
#include "../CallBacker/TDESEncryptCallBacker.h"
#include <string>
using namespace std;
int main()
{
	EncryptCallBacker *cb=new AESEncryptCallBacker();
	string src="helll o t7hs test";
	string key="12345678901234567890123456789";
	string d_src=cb->encrypt(src,key);
	string des=cb->decrypt(d_src,key,0);
	cout<<des<<endl;
	delete cb;
	EncryptCallBacker *cb1=new TDESEncryptCallBacker();
	string src1="09helll os test";
	string key1="12345678901234";
	string d_src1=cb1->encrypt(src1,key1);
	string des1=cb1->decrypt(d_src1,key1,src1.length());
	cout<<des1<<endl;
	delete cb1;
	return 0;
}